package com.tensquare.sms.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * ------------------------------
 * 功能：监听fanout消息
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/9/8-14:57
 * ------------------------------
 */
@Component
@RabbitListener(queues = "zl-chongqin")
public class MySmsListener03 {

    @RabbitHandler
    public void getMessage(String msg){
        System.out.println("[zl-chongqin]收到消息：" + msg);
    }
}
